package cn.net.vote.data.pojo;

import org.springframework.data.elasticsearch.annotations.Document;

/**
 * 【描 述】：<用户表实体类>
 * 【表 名】：<t_user>
 * 【环 境】：J2SE 1.8

 * @version  version 1.0
 * @since    2018年9月26日
 */
@Document(indexName = "user_index", type = "t_user")
public class User implements java.io.Serializable {

    // Fields
    /** 【描 述】：serialVersionUID */
    private static final long serialVersionUID = -8033065078639294542L;

    /** 【描 述】：主键 */
    private Integer id;
    /** 【描 述】：用户名 */
    private String username;
    /** 【描 述】：密码 */
    private String password;
    /** 【描 述】：身份证号 */
    private String idcard;
    /** 【描 述】：角色id */
    private Integer roleid;
    /** 【描 述】：姓名 */
    private String name;
    /** 【描 述】：性别 */
    private Integer sex;
    /** 【描述】：年龄*/
    private Integer age;
    /** 【描述】：家庭住址 */
    private String address;
    /** 【描述】：可用状态*/
    private String visiable;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getVisiable() {
        return visiable;
    }

    public void setVisiable(String visiable) {
        this.visiable = visiable;
    }

    public User(Integer id, String username, String password, String idcard, Integer roleid, String name, Integer sex, Integer age, String address, String visiable) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.idcard = idcard;
        this.roleid = roleid;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.address = address;
        this.visiable = visiable;
    }

    public User(){

    }
}
